#ifndef SENDFILE_H
#define SENDFILE_H

#include <QObject>

class QTcpSocket;
class SendFile : public QObject
{
    Q_OBJECT
public:
    explicit SendFile(QObject *parent = nullptr);


public slots:
    void send(QString path);
    void connectServer(unsigned short port,QString ip);
    void sendMessageSlot(QString);
    void disConnectServer();


signals:
    void connectOK();
    void gameover();
    void currentValue(int);
    void recvMessage(QString);

private:
    QTcpSocket* tcp=NULL;
};

#endif // SENDFILE_H
